import request from "@/utils/request";

// 查询期数配置列表
export function listSaleConfig(query) {
  return request({
    url: "/sale/SaleConfig/list",
    method: "get",
    params: query
  });
}

// 查询期数配置详细
export function getSaleConfig(id) {
  return request({
    url: "/sale/SaleConfig/" + id,
    method: "get"
  });
}

// 新增期数配置
export function addSaleConfig(data) {
  return request({
    url: "/sale/SaleConfig/add",
    method: "post",
    data: data
  });
}

// 修改期数配置
export function updateSaleConfig(data) {
  return request({
    url: "/sale/SaleConfig/add",
    method: "post",
    data: data
  });
}

// 删除期数配置
export function delSaleConfig(id) {
  return request({
    url: "/sale/SaleConfig/" + id,
    method: "post"
  });
}
